# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=py3-opengl-accelerate
pkgver=3.1.5
_pkgreal=PyOpenGL-accelerate-$pkgver
pkgrel=0
pkgdesc="OpenGL bindings for Python (Cython extensions)"
url="http://pyopengl.sourceforge.net/"
arch="all"
license="BSD-3-Clause"
depends="python3 py3-opengl"
makedepends="py3-setuptools python3-dev cython"
source="https://files.pythonhosted.org/packages/source/P/PyOpenGL-accelerate/$_pkgreal.tar.gz"
builddir="$srcdir"/$_pkgreal

replaces="py-opengl-accelerate" # Backwards compatibility
provides="py-opengl-accelerate=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="60a0305bd517f761ef4a01a590162037bf84fa01315c505c3e7d8bd6091d10929281315a467cc4a8ee837c881f498c6d77ed161bc047eb87968606047e0b8be0  PyOpenGL-accelerate-3.1.5.tar.gz"
